﻿



using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.ServiceProcess;
using log4net;
namespace SpiderService
{
    static class Program
    {


       

        /// <summary>
        /// 应用程序的主入口点。


        /// </summary>
        [STAThread]
        static void Main()
        {
#if DEBUG
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());

            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] { new SpiderService() };
            ServiceBase.Run(ServicesToRun);

#else
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] { new SpiderService() };
            ServiceBase.Run(ServicesToRun);
#endif
        }
    }
}